package com.jiyun.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/* *
 * @Author nxj
 * @Date 2023 08 2023/8/11 14 31
 * */
@Data
@ToString
@TableName("consumer")
public class Consumer {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String cname;
    private String code;
    private String sex;
    private Integer did;
    private Integer rid;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date createtime;
    private Integer status;
    private String photo;
    private Integer enter;
    private String username;
    private String password;
}
